package com.warningrc.module.language.struts.action;

import com.opensymphony.xwork2.Action;
import com.warningrc.system.Constants;
import com.warningrc.system.i18n.Languages;

public class LanguageAction implements Action {
	private Languages languages;

	public Languages getLanguages() {
		return languages;
	}

	public void setLanguages(Languages languages) {
		this.languages = languages;
	}

	@Override
	public String execute() throws Exception {
		setLanguages(Constants.getLanguages());
		return SUCCESS;
	}
}
